package com.ruicar.afs.cloud.risk.tortoise.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumDeserializer;
import com.ruicar.afs.cloud.common.core.enums.AfsEnumSerializer;
import com.ruicar.afs.cloud.risk.api.enums.tortoise.GwtTortoiseAntiFraudCallStep;
import com.ruicar.afs.cloud.risk.api.enums.tortoise.GwtTortoiseScene;
import com.ruicar.afs.cloud.risk.tortoise.enums.GwtTortoiseQueryStatus;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description
 * @Author Peng Jinbo
 * @Date 2020/07/30 21:16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("afs_credit_tortoise_record")
public class CreditTortoiseRecord extends BaseEntity {

    /**
     * Apply no
     */
    private String applyNo;

    /**
     * Main id
     */
    private String mainId;

    /**
     * Serial number
     */
    private String serialNumber;

    /**
     * Client server name
     */
    private String clientServerName;

    /**
     * Scene code
     */
    @JSONField(serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseScene sceneCode;

    /**
     * Call step
     */
    @JSONField(serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseAntiFraudCallStep callStep;

    /**
     * Record status
     */
    @JSONField(serializeUsing = AfsEnumSerializer.class, deserializeUsing = AfsEnumDeserializer.class)
    @JsonSerialize(using = AfsEnumSerializer.class)
    @JsonDeserialize(using = AfsEnumDeserializer.class)
    private GwtTortoiseQueryStatus recordStatus;

    /**
     * Query date
     */
    private Date queryDate;

    /**
     * Notice date
     */
    private Date noticeDate;

    /**
     * Notice result
     */
    private String noticeResult;

    /**
     * Send client status
     */
    private String sendClientStatus;

    /**
     * Track id
     */
    private String trackId;

}
